﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudSystem
{
    class Program
    {
        static void Main(string[] args)
        {

            Student studOne = new Student("pesho", "peshov", "ivanov", 13, "unknown", 131313, "shit@gmail.com",
                     "math", Specialty.Statistics, University.UNSS, Faculty.Economics);
            Student studTwo = new Student("Ivab", "peshov", "Stoqnov", 13, "lunata", 4214, "asdsad@gmail.com",
                     "math", Specialty.Math, University.UEVarna, Faculty.History);

            Console.WriteLine(studOne);
            Console.WriteLine();
            Console.WriteLine(studTwo);
            Console.WriteLine();

            Console.WriteLine("are they equal? " + studOne.Equals(studTwo));
            Console.WriteLine("are they equal with == ? " + (studOne == studTwo));
            Console.WriteLine();
            Console.WriteLine("generated new hashCode: " + studOne.GetHashCode());

            Student cloned = studOne.Clone();
            Console.WriteLine();
            Console.WriteLine(cloned);
            Console.WriteLine();
            Console.WriteLine("comparing first student and his clone: " + studOne.CompareTo(cloned));

        }
    }
}
